package com.wiscamp.ninechapters.problems.application.dto.commands.tasks;

import com.wiscamp.ninechapters.ddd.CommandObject;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serial;
import java.time.LocalDateTime;
import java.util.ArrayList;
import java.util.Collection;

/**
 * 习题集分发记录
 *
 * @author yifeng
 * @date 2015-05-05
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class UpdateAssignmentCommand extends CommandObject {
    @Serial
    private static final long serialVersionUID = 4214832675192010776L;

    /**
     * 编号
     */
    private long assignmentId = 0;

    /**
     * 习题集编号
     */
    private long setId = 0;

    /**
     * 分发类型
     */
    private int assignmentTypeId = 0;

    /**
     * 分发用户
     */
    private long assignmentUserId = 0;

    /**
     * 分发时间
     */
    private LocalDateTime assignmentTime;

    /**
     * 习题集分发记录明细
     */
    private Collection<UpdateAssignmentDetailDto> details = new ArrayList<>();
}